<div class="note_single note_{{ note.id }}">
    <span class="note_title">
        <a href="/notes/{{ note.id }}">{{ note.title }}</a>
    </span>
    {% if notes_tags_about %}
        <span style="font-size: small; 
            {% ifequal session.Persona_id note.subject_id %} background: #ff9; {% endifequal %}"
        >
            <span class="note_subject">
                (about: {{ note.subject.fullname }})
            </span>
            {% if notes_tags_date %}
                <span class="note_date">
                    modified: {{ note.modified|date:"D j, F" }} 
                    <span style="font-weight: normal">
                        (created: {{ note.published|date:"D j, F" }})
                    </span>
                </span>
            {% endif %}
        </span>
    {% endif %}
    {% if notes_tags_preview %}
    <br/>
        <span class="note_preview">
            {{ note.body|truncatewords:30 }}
        </span>
    {% endif %}
    {% if notes_tags_tags %}
    <br/>
        <span class="note_tags">
                ({% for tag in note.tags.all %}<a href="/notes/tags/{{ tag.name }}">{% ifequal tag.name tag_name %}<strong>{{ tag.name }}</strong>{% else %}{{ tag.name }}{% endifequal %}</a>{% if not forloop.last %}, {% endif %}{% endfor %})
        </span>
    {% endif %}
    {% if notes_tags_tasks %}
    <br/>
        {% load tasks_tags %}
        <span class="note_tasks_list persona_list_tasks_list">
        {% for task in note.task_set.all %}
                {% task_single %}
        {% endfor %}
        </span>
    {% endif %}
</div>
